import request from '@/utils/request'

// 查询代理商消费明细列表
export function listAgentExpend(query) {
  return request({
    url: '/agentExpend/agentExpend/list',
    method: 'get',
    params: query
  })
}

// 查询代理商消费明细详细
export function getAgentExpend(id) {
  return request({
    url: '/agentExpend/agentExpend/' + id,
    method: 'get'
  })
}

// 新增代理商消费明细
export function addAgentExpend(data) {
  return request({
    url: '/agentExpend/agentExpend',
    method: 'post',
    data: data
  })
}

// 修改代理商消费明细
export function updateAgentExpend(data) {
  return request({
    url: '/agentExpend/agentExpend',
    method: 'put',
    data: data
  })
}

// 删除代理商消费明细
export function delAgentExpend(id) {
  return request({
    url: '/agentExpend/agentExpend/' + id,
    method: 'delete'
  })
}
